Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent sort order for minikube addons list #2446

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

zcahana
Copy link
Contributor

@zcahana zcahana commented Jan 22, 2018

This PR modifies minikube addons list to list addons in a lexicographic sort order, so that the output is consistent across invocations of minikube addons list.

Resolves #2445.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 22, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: zcahana
We suggest the following additional approver: dlorenc

Assign the PR to them by writing /assign @dlorenc in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@zcahana
Copy link
Contributor Author

zcahana commented Jan 22, 2018

/assign @dlorenc

@zcahana
Copy link
Contributor Author

zcahana commented Jan 22, 2018

Note that I didn't add any unit-test for this, but tested manually.
I hope this is sufficient for the scope of this change.

zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ git log -n1 --oneline 
02f3014 List addons in a consistent sort order
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ make
GOOS=linux go build -tags "container_image_ostree_stub containers_image_openpgp" -ldflags="-X k8s.io/minikube/pkg/version.version=v0.24.1 -X k8s.io/minikube/pkg/version.isoVersion=v0.24.0 -X k8s.io/minikube/pkg/version.isoPath=minikube/iso -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitCommit=925c127ec6b946659ad0fd596fa959be43f0cc05 -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitVersion=v1.9.0 -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitTreeState=dirty -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.buildDate=2018-01-22T12:29:24Z -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.gitCommit=925c127ec6b946659ad0fd596fa959be43f0cc05 -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.gitVersion=v1.9.0 -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.gitTreeState=dirty -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.buildDate=2018-01-22T12:29:24Z " -a -o out/minikube-linux-amd64 k8s.io/minikube/cmd/minikube
cp ./out/minikube-linux-amd64 ./out/minikube
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ ./out/minikube addons list
- addon-manager: enabled
- coredns: disabled
- dashboard: disabled
- default-storageclass: enabled
- efk: disabled
- heapster: disabled
- ingress: disabled
- kube-dns: enabled
- registry: disabled
- registry-creds: disabled
- storage-provisioner: enabled
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ 
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ ./out/minikube addons list
- addon-manager: enabled
- coredns: disabled
- dashboard: disabled
- default-storageclass: enabled
- efk: disabled
- heapster: disabled
- ingress: disabled
- kube-dns: enabled
- registry: disabled
- registry-creds: disabled
- storage-provisioner: enabled

@dlorenc
Copy link
Contributor

dlorenc commented Jan 22, 2018

@minikube-bot ok to test

@dlorenc dlorenc merged commit 6e8bb2e into kubernetes:master Jan 24, 2018
@zcahana zcahana deleted the sort_addons_list branch January 25, 2018 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants